import 'package:json_annotation/json_annotation.dart'; 
import 'package:lai_zhan/common/model/shopResult/shop_result.dart';
import 'package:lai_zhan/common/model/userResult/user_result.dart';
import 'package:lai_zhan/common/model/vipResult/vip_result.dart';
part 'activity.g.dart';


@JsonSerializable()
class Activity extends Object{

  @JsonKey(name: 'aid')
  String aid;

  @JsonKey(name: 'title')
  String title;

  @JsonKey(name: 'content')
  String content;

  @JsonKey(name: 'shopResults')
  List<ShopResult> shopResults;

  @JsonKey(name: 'userResult')
  UserResult userResult;

  @JsonKey(name: 'vipResults')
  List<VipResult> vipResults;

  @JsonKey(name: 'create')
  String create;

  Activity(this.aid,this.title,this.content,this.shopResults,this.userResult,this.vipResults,this.create,);

  factory Activity.fromJson(Map<String, dynamic> srcJson) => _$ActivityFromJson(srcJson);

  Activity.Empty();

}

  
